package com.acme.task2;

public class Foo {

	private int serialNumber;
	byte array[] = new byte[1024];
	
	public Foo(int i){
		serialNumber = i;
	}
	
	@Override
	protected void finalize() throws Throwable {
		//Print "finalize called"
		System.out.println("this object was created on " + serialNumber + " step. finalize called");
		super.finalize();
	}
}
